#define _CRT_SECURE_NO_WARNINGS  1
#include<stdio.h>
int main()
{
    long long int a = 0, b = 0;
    int i = 1;
    scanf("%lld%lld", &a, &b);
    if (a < b)
    {
        int tmp = a;
        a = b;
        b = tmp;
    }
    while (a * i % b != 0)
    {
        i++;
    }
    printf("%lld", a * i);

    return 0;
}